﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JinRi.Services.Domains
{
    [Serializable]
    public class Domain
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }

        public bool IsDeleted { get; set; }

        public Domain()
        {
            CreateTime = DateTime.Now;
            UpdateTime = DateTime.Now;
            Id = Guid.NewGuid();
        }
    }
}